package day5;

public class automaticprint {
    public static void main(String[] args) {
        automaticmethod fuhao = new automaticmethod();
        fuhao.setName("马云");
        fuhao.setMoney(999999999);
        System.out.println("老子是" + fuhao.getName() + "，老子家产有" + fuhao.getMoney());
        System.out.println("==========================");
        automaticmethod fuhao2 = new automaticmethod("王健林", 888888888);
        System.out.println("我是" + fuhao2.getName() + ",我的资产是：" + fuhao2.getMoney());
        fuhao2.setName("渣渣辉");
        fuhao2.setMoney(777777777);
        System.out.println("我是" + fuhao2.getName() + ",我的资产是：" + fuhao2.getMoney());
    }
}
